package com.leonzhangxf.api;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author leonzhangxf
 * @date 20190630
 */
@RestController
@RequestMapping("healths")
public class HealthApi {

    @GetMapping
    @PreAuthorize("hasAuthority('PERMISSION_HEALTHS_GET')")
    public String get() {
        return "OK";
    }
}
